#! /bin/bash
eureka=`ps -ef | grep MaijiCloud-Eureka-1.0-SNAPSHOT.jar | grep -v grep | awk '{print $2}'`
kill -9 $eureka
mvn dependency:copy-dependencies -DoutputDirectory=lib/
nohup java -Xms512m -Xmx512m  -jar /maiji/MaijiCloud-Eureka/MaijiCloud-Eureka-1.0-SNAPSHOT.jar >> /maiji/MaijiCloud-Eureka/MaijiCloud-Eureka.log 2>&1 &
tail -f /maiji/MaijiCloud-Eureka/MaijiCloud-Eureka.log